package com.seraph.zys.dao.impl;

import com.seraph.bi.suite.support.domain.pagination.PageBox;
import com.seraph.bi.suite.support.domain.pagination.PageObject;
import com.seraph.zys.dao.PccBaSupervisePriceDAO;
import com.seraph.zys.dao.domain.PccBaSupervisePrice;
import com.seraph.zys.dao.domain.PccBaSupervisePriceExample;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class PccBaSupervisePriceDAOImpl extends SqlMapClientDaoSupport implements PccBaSupervisePriceDAO {

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PccBaSupervisePriceDAOImpl() {
        super();
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public Integer insert(PccBaSupervisePrice record) {
        Object newKey = getSqlMapClientTemplate().insert("pcc_ba_supervise_price.abatorgenerated_insert", record);
        return (Integer) newKey;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKey(PccBaSupervisePrice record) {
        int rows = getSqlMapClientTemplate().update("pcc_ba_supervise_price.abatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKeySelective(PccBaSupervisePrice record) {
        int rows = getSqlMapClientTemplate().update("pcc_ba_supervise_price.abatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public List selectByExample(PccBaSupervisePriceExample example, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        List list = getSqlMapClientTemplate().queryForList("pcc_ba_supervise_price.abatorgenerated_selectByExample", parms);
        return list;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public List selectByExample(PccBaSupervisePriceExample example) {
        return selectByExample(example, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PccBaSupervisePrice selectByPrimaryKey(Integer id) {
        PccBaSupervisePrice key = new PccBaSupervisePrice();
        key.setId(id);
        PccBaSupervisePrice record = (PccBaSupervisePrice) getSqlMapClientTemplate().queryForObject("pcc_ba_supervise_price.abatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int deleteByExample(PccBaSupervisePriceExample example) {
        int rows = getSqlMapClientTemplate().delete("pcc_ba_supervise_price.abatorgenerated_deleteByExample", getExampleParms(example));
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int deleteByPrimaryKey(Integer id) {
        PccBaSupervisePrice key = new PccBaSupervisePrice();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("pcc_ba_supervise_price.abatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getIDExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getId_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NULL", "Y");
            } else {
                parms.put("AND_ID_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_ID_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_EQUALS", "Y");
            } else {
                parms.put("AND_ID_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ID_NOT_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GT", "Y");
            } else {
                parms.put("AND_ID_GT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GE", "Y");
            } else {
                parms.put("AND_ID_GE", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LT", "Y");
            } else {
                parms.put("AND_ID_LT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LE", "Y");
            } else {
                parms.put("AND_ID_LE", "Y");
            }
            parms.put("id", example.getId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFISCAL_YEARExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getFiscalYear_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFROM_AREAExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getFromArea_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GT", "Y");
            } else {
                parms.put("AND_FROM_AREA_GT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GE", "Y");
            } else {
                parms.put("AND_FROM_AREA_GE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LT", "Y");
            } else {
                parms.put("AND_FROM_AREA_LT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LIKE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LIKE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getSORT_IDExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getSortId_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GT", "Y");
            } else {
                parms.put("AND_SORT_ID_GT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GE", "Y");
            } else {
                parms.put("AND_SORT_ID_GE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LT", "Y");
            } else {
                parms.put("AND_SORT_ID_LT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LE", "Y");
            } else {
                parms.put("AND_SORT_ID_LE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getproject_parentExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getProjectParent_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_NULL", "Y");
            } else {
                parms.put("AND_project_parent_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_NOT_NULL", "Y");
            } else {
                parms.put("AND_project_parent_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_EQUALS", "Y");
            } else {
                parms.put("AND_project_parent_EQUALS", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_project_parent_NOT_EQUALS", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_GT", "Y");
            } else {
                parms.put("AND_project_parent_GT", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_GE", "Y");
            } else {
                parms.put("AND_project_parent_GE", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_LT", "Y");
            } else {
                parms.put("AND_project_parent_LT", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_LE", "Y");
            } else {
                parms.put("AND_project_parent_LE", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_parent_LIKE", "Y");
            } else {
                parms.put("AND_project_parent_LIKE", "Y");
            }
            parms.put("projectParent", example.getProjectParent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getprojectExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getProject_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_NULL", "Y");
            } else {
                parms.put("AND_project_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_NOT_NULL", "Y");
            } else {
                parms.put("AND_project_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_EQUALS", "Y");
            } else {
                parms.put("AND_project_EQUALS", "Y");
            }
            parms.put("project", example.getProject());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_project_NOT_EQUALS", "Y");
            }
            parms.put("project", example.getProject());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_GT", "Y");
            } else {
                parms.put("AND_project_GT", "Y");
            }
            parms.put("project", example.getProject());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_GE", "Y");
            } else {
                parms.put("AND_project_GE", "Y");
            }
            parms.put("project", example.getProject());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_LT", "Y");
            } else {
                parms.put("AND_project_LT", "Y");
            }
            parms.put("project", example.getProject());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_LE", "Y");
            } else {
                parms.put("AND_project_LE", "Y");
            }
            parms.put("project", example.getProject());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_project_LIKE", "Y");
            } else {
                parms.put("AND_project_LIKE", "Y");
            }
            parms.put("project", example.getProject());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getply_transf_FEEExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getPlyTransfFee_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_NULL", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_EQUALS", "Y");
            }
            parms.put("plyTransfFee", example.getPlyTransfFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_NOT_EQUALS", "Y");
            }
            parms.put("plyTransfFee", example.getPlyTransfFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_GT", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_GT", "Y");
            }
            parms.put("plyTransfFee", example.getPlyTransfFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_GE", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_GE", "Y");
            }
            parms.put("plyTransfFee", example.getPlyTransfFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_LT", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_LT", "Y");
            }
            parms.put("plyTransfFee", example.getPlyTransfFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ply_transf_FEE_LE", "Y");
            } else {
                parms.put("AND_ply_transf_FEE_LE", "Y");
            }
            parms.put("plyTransfFee", example.getPlyTransfFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getTravel_allowance_FEEExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getTravelAllowanceFee_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_NULL", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_EQUALS", "Y");
            }
            parms.put("travelAllowanceFee", example.getTravelAllowanceFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_NOT_EQUALS", "Y");
            }
            parms.put("travelAllowanceFee", example.getTravelAllowanceFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_GT", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_GT", "Y");
            }
            parms.put("travelAllowanceFee", example.getTravelAllowanceFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_GE", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_GE", "Y");
            }
            parms.put("travelAllowanceFee", example.getTravelAllowanceFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_LT", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_LT", "Y");
            }
            parms.put("travelAllowanceFee", example.getTravelAllowanceFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_Travel_allowance_FEE_LE", "Y");
            } else {
                parms.put("AND_Travel_allowance_FEE_LE", "Y");
            }
            parms.put("travelAllowanceFee", example.getTravelAllowanceFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getaccommodation_FEEExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        switch (example.getAccommodationFee_Indicator()) {
        case PccBaSupervisePriceExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_NULL", "Y");
            } else {
                parms.put("AND_accommodation_FEE_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_accommodation_FEE_NOT_NULL", "Y");
            }
            break;
        case PccBaSupervisePriceExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_accommodation_FEE_EQUALS", "Y");
            }
            parms.put("accommodationFee", example.getAccommodationFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_accommodation_FEE_NOT_EQUALS", "Y");
            }
            parms.put("accommodationFee", example.getAccommodationFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_GT", "Y");
            } else {
                parms.put("AND_accommodation_FEE_GT", "Y");
            }
            parms.put("accommodationFee", example.getAccommodationFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_GE", "Y");
            } else {
                parms.put("AND_accommodation_FEE_GE", "Y");
            }
            parms.put("accommodationFee", example.getAccommodationFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_LT", "Y");
            } else {
                parms.put("AND_accommodation_FEE_LT", "Y");
            }
            parms.put("accommodationFee", example.getAccommodationFee());
            break;
        case PccBaSupervisePriceExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_accommodation_FEE_LE", "Y");
            } else {
                parms.put("AND_accommodation_FEE_LE", "Y");
            }
            parms.put("accommodationFee", example.getAccommodationFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getExampleParms(PccBaSupervisePriceExample example) {
        Map parms = new HashMap();
        parms.putAll(getIDExampleParms(example));
        parms.putAll(getFISCAL_YEARExampleParms(example));
        parms.putAll(getFROM_AREAExampleParms(example));
        parms.putAll(getSORT_IDExampleParms(example));
        parms.putAll(getproject_parentExampleParms(example));
        parms.putAll(getprojectExampleParms(example));
        parms.putAll(getply_transf_FEEExampleParms(example));
        parms.putAll(getTravel_allowance_FEEExampleParms(example));
        parms.putAll(getaccommodation_FEEExampleParms(example));
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int selectCountByExample(PccBaSupervisePriceExample example) {
        Map parms = getExampleParms(example);
        int count = ((Integer)getSqlMapClientTemplate().queryForObject("pcc_ba_supervise_price.abatorgenerated_selectCountByExample", parms)).intValue();
        return count;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PageBox selectByExampleWithPaging(PccBaSupervisePriceExample example, int pageSize, int pageNum, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        PageBox pageBox = new PageBox();
        PageObject pageObject = new PageObject();
        pageObject.setPageSize(pageSize);
        pageObject.setPageIndex(pageNum);
        int itemAmount = selectCountByExample(example);
        pageObject.setItemAmount(itemAmount);
        List pageList = null;
        if (pageObject.getBeginIndex() <= pageObject.getItemAmount()) {
            pageList = (getSqlMapClientTemplate().queryForList("pcc_ba_supervise_price.abatorgenerated_selectByExample", parms, pageObject.getBeginIndex() - 1, pageSize));
        }
        pageBox.setPageObject(pageObject);
        pageBox.setPageList(pageList);
        return pageBox;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PageBox selectByExampleWithPaging(PccBaSupervisePriceExample example, int pageSize, int pageNum) {
        return selectByExampleWithPaging(example, pageSize, pageNum, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_ba_supervise_price
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKeyForCgs(PccBaSupervisePrice record) {
        int rows = getSqlMapClientTemplate().update("pcc_ba_supervise_price.abatorgenerated_updateByPrimaryKeyForCgs", record);
        return rows;
    }
}